<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
<?php


class Image_helper {

	var $CI = null;
	public function __construct(){
        parent::__construct();
		

	}//endfct
      
      function resize_photo($image='', $width='', $height=''){
		$img_explode = explode('/',$image);
		$img_name = $img_explode[count($img_explode)-1];
         if(!empty($width) && !empty($height)){  //RESIZING THE IMAGE
			$img_src='';		
			$photo= base_url().'image_custom.php?image-name='.$img_name.'&width='.$width.'&amp;height='.$height.'&amp;image='.$image;

         }
		 return $photo;
		
      }//endfct


}//endclass




